<!-- include tpl=header -->
<!-- include tpl=block/picplayer -->

<!-- php:$products = phpok('new_products') -->
<!-- if $products -->
<section class="container">
	<div class="p-4">
		<div class="m-2">
			<h2 class="h1 text-center"{if $products.project.style} style="{$products.project.style}"{/if}>
				{$products.project.title}
				<!-- if $products.project.entitle --><small class="d-block m-2">{$products.project.entitle}</small><!-- /if -->
			</h2>
		</div>
		<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4">
			<!-- loop from=$products.rslist key=$key value=$value id=$tmpid -->
			<div class="col-12 col-md-4 p-2">
				<div class="card p-2">
					<a href="{$value.url}" title="{$value.title}"><img class=" card-img-top" src="{$value.thumb.gd.thumb}" alt="{$value.title}" /></a>
					<div class="card-body p-2">
						<a href="{$value.url}" title="{$value.title}"><h5 class="text-nowrap text-truncate">{$value.title}</h5></a>
						<!-- if $products.project.is_biz -->
						<p class="card-text text-danger">{func price_format $value.price $value.currency_id $config.currency_id}</p>
						<!-- /if -->
					</div>
				</div>
			</div>
			<!-- /loop -->
		</div>
	</div>
</section>
<!-- /if -->

<!-- 公司简介 -->
<!-- php:$about = phpok('aboutus') -->
<!-- if $about -->
<section class="jumbotron p-3">
	<h2 class="text-center mb-3">{$about.title}<!-- if $about.entitle --><small>{$about.entitle}</small><!-- /if --></h2>
	<div class="container">
		<div class="row">
			<!-- if $about.pic -->
			<div class="col-md-6">
				<img src="{$about.pic.filename}" style="width:100%" />
			</div>
			<!-- /if -->
			<div class="col-md-6">
				{$about.note}
				<div class="text-center mt-4">
					<a class="btn btn-primary btn-lg" href="{$about.url}" role="button">查看详细信息</a>
				</div>
			</div>
		</div>
	</div>
</section>
<!-- /if -->
<!-- php:$arclist = phpok('news') -->
<!-- if $arclist -->
<section class="container">
	<div class="row p-2 mb-2">
		<div class="col">
			<h2 class="h1 text-center"{if $arclist.project.style} style="{$arclist.project.style}"{/if}>
				{$arclist.project.title}
				<!-- if $arclist.project.entitle --><small class="d-block mt-2">{$arclist.project.entitle}</small><!-- /if -->
			</h2>
		</div>
	</div>
	<!-- loop from=$arclist.rslist key=$key value=$value id=$tmpid -->
	<div class="media{if $tmpid.num != $tmpid.total} border-bottom{/if} mb-3">
		<div class="row">
			<!-- if $value.thumb -->
			<div class="col-4 col-md-2 mb-3"><a href="{$value.url}" title="{$value.title}"><img src="{$value.thumb.gd.thumb}" alt="{$value.title}" class="w-100" /></a></div>
			<!-- /if -->
			<div class="col">
				<div class="media-body">
					<a href="{$value.url}" title="{$value.title}" class="crop-text-1"><h5>{$value.title}</h5></a>
					<p class="crop-text-2"><!-- if $value.note -->{func phpok_cut $value.note 100 …}<!-- else -->{func phpok_cut $value.content 100 …}<!-- /if --></p>
				</div>
			</div>
		</div>
	</div>
	<!-- /loop -->
</section>
<!-- /if -->

<!-- include tpl=footer -->